package com.traffic.api.filter;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.traffic.api.filter.filter.AppkeyFilter;
import com.traffic.api.filter.filter.IApiFilter;
import com.traffic.api.filter.filter.IPbindingFilter;
import com.traffic.api.filter.filter.SignFilter;
import com.traffic.api.filter.filter.TimeFormatFilter;

public class ApiCustomeFactoryFilter {
	static List<IApiFilter> rules = new ArrayList<IApiFilter>();

	public static final void check(Map<String, Object> params) {
		for (IApiFilter rule : rules)
			rule.validateFilter(params);
	}

	static {
		rules.add(new AppkeyFilter());
		rules.add(new TimeFormatFilter());
		rules.add(new IPbindingFilter());
		rules.add(new SignFilter());
	}
}